$strLeft = Left ( <string>,
[size] )
Extracts a substring
from the leftmost end of the string.
Parameters
<string>
Main string parameter.
[size] Number
of characters to be extracted.
Return Value
Returns n characters from the left side of the string.
Remarks
- Extracts a substring
of length [size] characters starting from the beginning of the string. The
function returns a copy of the extracted substring.
Example
$a = "ABCD"
$b = left($a,2)